package com.party.core.model.partner;

import com.party.core.model.BaseModel;

import java.io.Serializable;
import java.util.Objects;

/**
 * @program: party-temp
 * @description: 标签
 * @author: Huaqunhao
 * @create: 2018-08-21 17:24
 **/
public class PartnerLabel extends BaseModel implements Serializable {

    private static final long serialVersionUID = 120767924085408605L;
    /**
     * 实名用户
     */
    public static final Integer REAL_USER = 0;

    /**
     * 实名会员
     */
    public static final Integer REAL_MEMBER = 1;

    public PartnerLabel() {
    }

    public PartnerLabel(String labelName, String organizationId, Integer type) {
        this.labelName = labelName;
        this.organizationId = organizationId;
        this.type = type;
    }

    //标签名
    private String labelName;
    //机构id
    private String organizationId;
    //0用户 1会员
    private Integer type;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }



    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        PartnerLabel that = (PartnerLabel) o;
        return Objects.equals(labelName, that.labelName) &&
                Objects.equals(organizationId, that.organizationId) &&
                Objects.equals(type, that.type);
    }

    @Override
    public int hashCode() {

        return Objects.hash(super.hashCode(), labelName, organizationId, type);
    }

    @Override
    public String toString() {
        return "PartnerLabel{" +
                "labelName='" + labelName + '\'' +
                ", organizationId='" + organizationId + '\'' +
                ", type=" + type +
                '}';
    }
}

